vulkan: Add a way to specify a device
authorMatthias Clasen <mclasen@redhat.com>
Wed, 10 Jan 2018 01:33:04 +0000 (20:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 10 Jan 2018 01:33:04 +0000 (20:33 -0500)
commitccdeaab1f97f5d73fad951a56bd0d6ccfa94f2a2
tree84401cae960a65a59a753bdfdc473a38e8b3e02c
parent0fe6d76ab6a5e0da97bc08922f05814a25d4315e
vulkan: Add a way to specify a device

We should be smarter in picking a good device eventually,
but for now, we just allow to explicitly choose one. To
see a list of all devices, use GDK_VULKAN_DEVICE=list

To specify which device to use, use GDK_VULKAN_DEVICE=<number>
gdk/gdkvulkancontext.c